/**
 * @author:  maybe
 * @date: 2024/1/9
 * @des: 订单模块
 */
const Router = require('koa-router')
const router = new Router()
const Order = require('../../db/controllers/order')
const routers = router

// 订单
routers.get('/list',Order.getList) // 获取订单模块
routers.delete('/delete',Order.delete) //删除订单模块


routers.post('/order',Order.add) // 添加订单模块
routers.put('/order',Order.update) //修改订单模块

routers.get('/order',Order.detail) // 获取订单模块
routers.post('/order/pay',Order.pay) // 获取订单模块
routers.post('/order/complatePay',Order.complatePay) // 获取订单模块
routers.post('/notify_order',Order.payResult) // 获取微信支付的返回结果

module.exports = routers